//#include "font_asc_1bit.h"
//#include "font_asc_big_1bit.h"
//#include "font_asc_small_1bit.h"

    
#if(AOV_THAI_SUPPORT_ENABLE == SYS_FUNC_ON)
//#include "font_thai_1bit.h"
#include "Font_thai_1bit_noto.h"
#endif
#if(AOV_VIE_SUPPORT_ENABLE == SYS_FUNC_ON)
#include "font_vie_1bit.h"
#include "font_vie_big_1bit.h"
#endif

#if(AOV_CHS_SUPPORT_ENABLE == SYS_FUNC_ON)
#include "font_chs_1bit.h"
#endif
#if(AOV_ARABIC_SUPPORT_ENABLE == SYS_FUNC_ON)
#include "font_arb_1bit.h"
#include "font_arb_big_1bit.h"
#include "font_arb_small_1bit.h"
#endif
#if(AOV_TAMIL_SUPPORT_ENABLE == SYS_FUNC_ON)
#include "font_tamil_1bit.h"
#endif
#if(AOV_RUS_SUPPORT_ENABLE == SYS_FUNC_ON)||(AOV_UKRA_SUPPORT_ENABLE == SYS_FUNC_ON)
#include "font_cry_1bit.h"
#include "font_cry_big_1bit.h"
#include "font_cry_small_1bit.h"
#endif	





#include "../../osd_rsc.h"
#include <api/libmp/mp_subtitle_api.h>



#if(AOV_THAI_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_thai_1bit[] =
{
	/*
	{28, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
	{28, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
	{28, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
	{28, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
*/
//Gavim@20140820
	{37, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
	{37, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
	{37, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
	{37, 87,    Fonts_thai_width_1bit,    Fonts_thai_data_1bit, Fonts_thai_name_1bit, 1},
};
#endif

#if(AOV_VIE_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_vie_1bit[] =
{
	{36, 134,    Fonts_vie_width_1bit,    Fonts_vie_data_1bit, Fonts_vie_name_1bit, 1},
	{36, 134,    Fonts_vie_width_1bit,    Fonts_vie_data_1bit, Fonts_vie_name_1bit, 1},
	{42, 134,    Fonts_vie_big_width_1bit,Fonts_vie_big_data_1bit, Fonts_vie_big_name_1bit, 1},
	{36, 134,    Fonts_vie_width_1bit,    Fonts_vie_data_1bit, Fonts_vie_name_1bit, 1},
};
#endif

#if(AOV_CHS_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_chs_1bit[] =
{
	{36, 6763,    Fonts_chs_width_1bit,	Fonts_chs_data_1bit, Fonts_chs_name_1bit, 1},
	{36, 6763,    Fonts_chs_width_1bit,	Fonts_chs_data_1bit, Fonts_chs_name_1bit, 1},
	{36, 6763,    Fonts_chs_width_1bit,	Fonts_chs_data_1bit, Fonts_chs_name_1bit, 1},
	{36, 6763,    Fonts_chs_width_1bit,	Fonts_chs_data_1bit, Fonts_chs_name_1bit, 1},
};
#endif

#if(AOV_ARABIC_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_arb_1bit[] =
{
	{36, 458,    Fonts_arb_width_1bit,    Fonts_arb_data_1bit, Fonts_arb_name_1bit, 1},
    {31, 458,    Fonts_arb_small_width_1bit,    Fonts_arb_small_data_1bit, Fonts_arb_small_name_1bit, 1},
    {42, 458,    Fonts_arb_big_width_1bit,    Fonts_arb_big_data_1bit, Fonts_arb_big_name_1bit, 1},
    {31, 458,    Fonts_arb_width_1bit,    Fonts_arb_data_1bit, Fonts_arb_name_1bit, 1},
};
#endif

#if(AOV_TAMIL_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_tam_1bit[] =
{
	{36, 361,    Fonts_tam_width_1bit,	Fonts_tam_data_1bit, Fonts_tam_name_1bit, 1},
	{36, 361,    Fonts_tam_width_1bit,	Fonts_tam_data_1bit, Fonts_tam_name_1bit, 1},
	{36, 361,    Fonts_tam_width_1bit,	Fonts_tam_data_1bit, Fonts_tam_name_1bit, 1},
	{36, 361,    Fonts_tam_width_1bit,	Fonts_tam_data_1bit, Fonts_tam_name_1bit, 1},
};
#endif

#if(AOV_RUS_SUPPORT_ENABLE == SYS_FUNC_ON)||(AOV_UKRA_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_cry_1bit[] =
{
	{29, 66,    Fonts_cry_width_1bit,	Fonts_cry_data_1bit, Fonts_cry_name_1bit, 1},
	{29, 66,    Fonts_cry_width_1bit,	Fonts_cry_data_1bit, Fonts_cry_name_1bit, 1},
	{29, 66,    Fonts_cry_width_1bit,	Fonts_cry_data_1bit, Fonts_cry_name_1bit, 1},
	{29, 66,    Fonts_cry_width_1bit,	Fonts_cry_data_1bit, Fonts_cry_name_1bit, 1},
};
#endif
font_t font_asc_1bit[] =
{
    //{36, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
    //{31, 96,    Fonts_asc_small_width_1bit,Fonts_asc_small_data_1bit, Fonts_asc_small_name_1bit, 1},
    //{42, 96,    Fonts_asc_big_width_1bit,Fonts_asc_big_data_1bit, Fonts_asc_big_name_1bit, 1},
	//{36, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
	{29, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
    {29, 95,    Fonts_asc_width_1bit,	 Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
    {29, 95,    Fonts_asc_width_1bit,	 Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
    {29, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
};

font_t *font_array_1bit[]=
{
	font_asc_1bit,
#if(AOV_THAI_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_thai_1bit,
#endif
#if(AOV_VIE_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_vie_1bit,
#endif
#if(AOV_CHS_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_chs_1bit,
#endif
#if(AOV_ARABIC_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_arb_1bit,
#endif
#if(AOV_TAMIL_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_tam_1bit,
#endif	
#if(AOV_RUS_SUPPORT_ENABLE == SYS_FUNC_ON)||(AOV_UKRA_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_cry_1bit,
#endif	

};


font_subt_t font_asc_1bit_subt[] =
{
   /*height start end   count size       width                      data                      code_table      zero_data_num data_offset offset_unit  data_type*/
    //{36, 0x0020, 0x007e, 95,   0,  (const UINT8 *)Fonts_asc_width_1bit,       (const UINT8 *)Fonts_asc_data_1bit,      (const UINT16 *)Fonts_asc_name_1bit,       NULL,       NULL,       0,            2},
    //{31, 0x0020, 0x007e, 96,   0,  (const UINT8 *)Fonts_asc_small_width_1bit,       (const UINT8 *)Fonts_asc_small_data_1bit,     (const UINT16 *) Fonts_asc_small_name_1bit,       NULL,       NULL,       0,            2},
    //{42, 0x0020, 0x007f, 96,   0,  (const UINT8 *)Fonts_asc_big_width_1bit,   (const UINT8 *)Fonts_asc_big_data_1bit,  (const UINT16 *)Fonts_asc_big_name_1bit,   NULL,       NULL,       0,            2},
    //{36, 0x0020, 0x007e, 95,   0,  (const UINT8 *)Fonts_asc_width_1bit,       (const UINT8 *)Fonts_asc_data_1bit,      (const UINT16 *)Fonts_asc_name_1bit,       NULL,       NULL,       0,            2},
	
			{29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
			{29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
			{29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
			{29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},

};


#if(AOV_THAI_SUPPORT_ENABLE == SYS_FUNC_ON)
font_subt_t font_thai_1bit_subt[] =
{
   /*height start end   count size       width                   data                        code_table      zero_data_num data_offset offset_unit  data_type*/
    {28, 0x0e01, 0x0e5b, 87,   0,  (const UINT8 *)Fonts_thai_width_1bit,       (const UINT8 *)Fonts_thai_data_1bit,      (const UINT16 *)Fonts_thai_name_1bit,       NULL,       NULL,       0,            2},
    {28, 0x0e01, 0x0e5b, 87,   0,  (const UINT8 *)Fonts_thai_width_1bit,       (const UINT8 *)Fonts_thai_data_1bit,      (const UINT16 *)Fonts_thai_name_1bit,       NULL,       NULL,       0,            2},
    {28, 0x0e01, 0x0e5b, 87,   0,  (const UINT8 *)Fonts_thai_width_1bit,       (const UINT8 *)Fonts_thai_data_1bit,      (const UINT16 *)Fonts_thai_name_1bit,       NULL,       NULL,       0,            2},
    {28, 0x0e01, 0x0e5b, 87,   0,  (const UINT8 *)Fonts_thai_width_1bit,       (const UINT8 *)Fonts_thai_data_1bit,      (const UINT16 *)Fonts_thai_name_1bit,       NULL,       NULL,       0,            2},    
};
#endif
#if(AOV_VIE_SUPPORT_ENABLE == SYS_FUNC_ON)
font_subt_t font_vie_1bit_subt[] =
{
   /*height start end   count size       width                   data                        code_table      zero_data_num data_offset offset_unit  data_type*/
    {36, 0x00C0, 0x1EF9, 134,   0,  (const UINT8 *)Fonts_vie_width_1bit,       (const UINT8 *)Fonts_vie_data_1bit,      (const UINT16 *)Fonts_vie_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x00C0, 0x1EF9, 134,   0,  (const UINT8 *)Fonts_vie_width_1bit,       (const UINT8 *)Fonts_vie_data_1bit,      (const UINT16 *)Fonts_vie_name_1bit,       NULL,       NULL,       0,            2},
    {42, 0x00C0, 0x1EF9, 134,   0,  (const UINT8 *)Fonts_vie_big_width_1bit,   (const UINT8 *)Fonts_vie_big_data_1bit,  (const UINT16 *)Fonts_vie_big_name_1bit,   NULL,       NULL,       0,            2},
    {36, 0x00C0, 0x1EF9, 134,   0,  (const UINT8 *)Fonts_vie_width_1bit,       (const UINT8 *)Fonts_vie_data_1bit,      (const UINT16 *)Fonts_vie_name_1bit,       NULL,       NULL,       0,            2},    
};
#endif
#if(AOV_CHS_SUPPORT_ENABLE == SYS_FUNC_ON)
font_subt_t font_chs_1bit_subt[] =
{
   /*height start end   count size       width                   data                        code_table      zero_data_num data_offset offset_unit  data_type*/
    {36, 0x4e00, 0x9fa0, 6763,   0,  (const UINT8 *)Fonts_chs_width_1bit,       (const UINT8 *)Fonts_chs_data_1bit,      (const UINT16 *)Fonts_chs_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x4e00, 0x9fa0, 6763,   0,  (const UINT8 *)Fonts_chs_width_1bit,       (const UINT8 *)Fonts_chs_data_1bit,      (const UINT16 *)Fonts_chs_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x4e00, 0x9fa0, 6763,   0,  (const UINT8 *)Fonts_chs_width_1bit,       (const UINT8 *)Fonts_chs_data_1bit,      (const UINT16 *)Fonts_chs_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x4e00, 0x9fa0, 6763,   0,  (const UINT8 *)Fonts_chs_width_1bit,       (const UINT8 *)Fonts_chs_data_1bit,      (const UINT16 *)Fonts_chs_name_1bit,       NULL,       NULL,       0,            2},    
};
#endif
#if(AOV_ARABIC_SUPPORT_ENABLE == SYS_FUNC_ON)
font_subt_t font_arb_1bit_subt[] =
{
   /*height start end   count size       width                   data                        code_table      zero_data_num data_offset offset_unit  data_type*/
    {36, 0x060c, 0xfefc, 458,  0,  (const UINT8 *)Fonts_arb_width_1bit,       (const UINT8 *)Fonts_arb_data_1bit,      (const UINT16 *)Fonts_arb_name_1bit,       NULL,       NULL,       0,            2},
    {31, 0x060c, 0xfefc, 458,  0,  (const UINT8 *)Fonts_arb_small_width_1bit,       (const UINT8 *)Fonts_arb_small_data_1bit,      (const UINT16 *)Fonts_arb_small_name_1bit,       NULL,       NULL,       0,            2},
    {42, 0x060c, 0xfefc, 458,  0,  (const UINT8 *)Fonts_arb_big_width_1bit,       (const UINT8 *)Fonts_arb_big_data_1bit,      (const UINT16 *)Fonts_arb_big_name_1bit,       NULL,       NULL,       0,            2},
    {31, 0x060c, 0xfefc, 458,  0,  (const UINT8 *)Fonts_arb_width_1bit,       (const UINT8 *)Fonts_arb_data_1bit,      (const UINT16 *)Fonts_arb_name_1bit,       NULL,       NULL,       0,            2},
};
#endif
#if(AOV_TAMIL_SUPPORT_ENABLE == SYS_FUNC_ON)
font_subt_t font_tam_1bit_subt[] =
{
   /*height start end   count size       width                      data                      code_table      zero_data_num data_offset offset_unit  data_type*/
    {36, 0x0a00, 0x0bfa, 361,   0,  (const UINT8 *)Fonts_tam_width_1bit,       (const UINT8 *)Fonts_tam_data_1bit,      (const UINT16 *)Fonts_tam_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x0a00, 0x0bfa, 361,   0,  (const UINT8 *)Fonts_tam_width_1bit,       (const UINT8 *)Fonts_tam_data_1bit,      (const UINT16 *)Fonts_tam_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x0a00, 0x0bfa, 361,   0,  (const UINT8 *)Fonts_tam_width_1bit,       (const UINT8 *)Fonts_tam_data_1bit,      (const UINT16 *)Fonts_tam_name_1bit,       NULL,       NULL,       0,            2},
    {36, 0x0a00, 0x0bfa, 361,   0,  (const UINT8 *)Fonts_tam_width_1bit,       (const UINT8 *)Fonts_tam_data_1bit,      (const UINT16 *)Fonts_tam_name_1bit,       NULL,       NULL,       0,            2},    
};
#endif

#if(AOV_RUS_SUPPORT_ENABLE == SYS_FUNC_ON)||(AOV_UKRA_SUPPORT_ENABLE == SYS_FUNC_ON)
/*
font_subt_t font_cry_1bit_subt[] =
{
   //height start end   count size       width                      data                      code_table      zero_data_num data_offset offset_unit  data_type 
    {29, 0x0410, 0x044F, 64,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
    {29, 0x0410, 0x044F, 64,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
    {29, 0x0410, 0x044F, 64,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
    {29, 0x0410, 0x044F, 64,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
};
*/

font_subt_t font_cry_1bit_subt[] =
{
   //height start end   count size       width                      data                      code_table      zero_data_num data_offset offset_unit  data_type 
    {29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
    {29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
    {29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
    {29, 0x0406, 0x0456, 66,   0,  (const UINT8 *)Fonts_cry_width_1bit,       (const UINT8 *)Fonts_cry_data_1bit,      (const UINT16 *)Fonts_cry_name_1bit,       NULL,       NULL,       0,            2},
};

#endif

font_subt_t *font_array_1bit_subt[]=
{
	font_asc_1bit_subt,
#if(AOV_THAI_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_thai_1bit_subt,
#endif
#if(AOV_VIE_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_vie_1bit_subt,
#endif
#if(AOV_CHS_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_chs_1bit_subt,
#endif
#if(AOV_ARABIC_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_arb_1bit_subt,
#endif
#if(AOV_TAMIL_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_tam_1bit_subt,
#endif
#if(AOV_RUS_SUPPORT_ENABLE == SYS_FUNC_ON)||(AOV_UKRA_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_cry_1bit_subt,
#endif
};

#define FONT_MAX_SIZE 4

